package com.icloud.common.database.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("article_settings")
@ApiModel(value = "帖子设置对象", description = "动态设置")
public class ArticleSettings {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty("创建人id")
    @TableField("created_id")
    private Long createdId;

    @ApiModelProperty("修改人id")
    @TableField("updated_id")
    private Long updatedId;

    @ApiModelProperty("一条动态正文的最大字数")
    @TableField("max_words")
    private Integer maxWords;
    @ApiModelProperty("发布奖励,1日1次")
    @TableField("publish_reward")
    private Integer publishReward;
    @ApiModelProperty("一条动态可发布图片数量上限")
    @TableField("img_count")
    private Integer imgCount;
    @ApiModelProperty("一个图片文件大小上限(M)")
    @TableField("img_max")
    private Integer imgMax;
    @ApiModelProperty("一条动态可发布视频数量上限")
    @TableField("video_count")
    private Integer videoCount;
    @ApiModelProperty("一个视频文件大小上限(M)")
    @TableField("video_max")
    private Integer videoMax;
    @ApiModelProperty("是否开启敏感词 TRUE,FALSE")
    @TableField("`sensitive_words`")
    private String sensitiveWords;
}
